﻿@model IEnumerable<FinalProject.Entities.User>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table id="newspaper-a" summary="2007 Major IT Companies' Profit">
<thead>
    <tr>
        <th scope="col">
            Username
        </th>
        <th scope="col">
            Password
        </th>
        <th scope="col">
            UserEmailAddress
        </th>
        <th scope="col">
            DateCreated
        </th>
        <th scope="col">
            LastUpdated
        </th>
        <th></th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Password)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreationDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LastActivityDate)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}
</tbody>
</table>
